package com.ruoyi.classai.domain.vo.chapterresource;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 老师资源库视图对象
 *
 * @author lcj
 * @date 2025-03-26
 */
@Data
@Schema(description = "老师资源库视图对象")
public class EwcChapterResourceVo {

    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;

    /**
     * 资源名称
     */
    @Schema(description = "资源名称")
    private String resourceName;

    /**
     * 课程id
     */
    @Schema(description = "课程id")
    private String courseId;

    /**
     * 章节ID
     */
    @Schema(description = "章节ID")
    private String chapterId;

    /**
     * 模块的代码
     */
    @Schema(description = "模块的代码")
    private String moduleCode;

    /**
     * 资源地址
     */
    @Schema(description = "资源地址")
    private String resourceUrl;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private Date updateTime;

    /**
     * 创建人名称
     */
    @Schema(description = "创建人名称")
    private String creator;

    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID")
    private String creatorId;

    /**
     * 学科类型
     */
    @Schema(description = "学科类型")
    private Integer subjectType;

    /**
     * 文件类型
     */
    @Schema(description = "文件类型:0图片，1视频，2音频")
    private Integer fileType;

    /**
     * 文件后缀
     */
    @Excel(name = "文件后缀")
    @Schema(description = "文件后缀")
    private String fileDetails;
}